package com.jy.adscm.operation.mscyb.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-26
 */
public class JqbzPartsassemblydetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    private String tid;
    private String partsname;
    @TableField(exist = false)
    private String partsrealnameName;
    private String partscode;
    private String partsbatch;
    private String partstype;
    private String userperson;
    @TableField(exist = false)
    private String userpersonName;
    private Date usetime;
    private Date createtime;
    private String partsrealname;
    private Double nums;
    private String unit;
    private String materialstate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getPartsname() {
        return partsname;
    }

    public void setPartsname(String partsname) {
        this.partsname = partsname;
    }

    public String getPartscode() {
        return partscode;
    }

    public void setPartscode(String partscode) {
        this.partscode = partscode;
    }

    public String getPartsbatch() {
        return partsbatch;
    }

    public void setPartsbatch(String partsbatch) {
        this.partsbatch = partsbatch;
    }

    public String getPartstype() {
        return partstype;
    }

    public void setPartstype(String partstype) {
        this.partstype = partstype;
    }

    public String getUserperson() {
        return userperson;
    }

    public void setUserperson(String userperson) {
        this.userperson = userperson;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getUsetime() {
        return usetime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setUsetime(Date usetime) {
        this.usetime = usetime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreatetime() {
        return createtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getPartsrealname() {
        return partsrealname;
    }

    public void setPartsrealname(String partsrealname) {
        this.partsrealname = partsrealname;
    }

    public Double getNums() {
        return nums;
    }

    public void setNums(Double nums) {
        this.nums = nums;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMaterialstate() {
        return materialstate;
    }

    public void setMaterialstate(String materialstate) {
        this.materialstate = materialstate;
    }

    public String getPartsrealnameName() {
        return partsrealnameName;
    }

    public void setPartsrealnameName(String partsrealnameName) {
        this.partsrealnameName = partsrealnameName;
    }

    public String getUserpersonName() {
        return userpersonName;
    }

    public void setUserpersonName(String userpersonName) {
        this.userpersonName = userpersonName;
    }

    @Override
    public String toString() {
        return "JqbzPartsassemblydetail{" +
                "id=" + id +
                ", tid='" + tid + '\'' +
                ", partsname='" + partsname + '\'' +
                ", partsrealnameName='" + partsrealnameName + '\'' +
                ", partscode='" + partscode + '\'' +
                ", partsbatch='" + partsbatch + '\'' +
                ", partstype='" + partstype + '\'' +
                ", userperson='" + userperson + '\'' +
                ", userpersonName='" + userpersonName + '\'' +
                ", usetime=" + usetime +
                ", createtime=" + createtime +
                ", partsrealname='" + partsrealname + '\'' +
                ", nums=" + nums +
                ", unit='" + unit + '\'' +
                ", materialstate='" + materialstate + '\'' +
                '}';
    }
}
